package cn.bytest.netty;

import cn.bytets.rpc.api.RpcClient;
import cn.bytets.rpc.api.RpcServer;
import cn.bytets.rpc.api.Transporter;
import cn.bytets.rpc.common.URL;

public class NettyTransporter implements Transporter {

    private URL url;

    public NettyTransporter(){

    }
    public NettyTransporter(URL url){
        this.url = url;
    }
    @Override
    public RpcServer bind() {
        return new NettyServer();
    }

    @Override
    public RpcClient connect(URL url) {
        return new NettyClient(url);
    }
}
